package org.cloud.im.core.tcp;

import org.cloud.im.core.ImPacket;
import org.cloud.im.core.packets.Command;

/**
 * @Author: w.weidong.lin@abite.com
 * @Description: TODO
 * @Date: create in 2021/10/19 14:22
 */
public class TcpPacket extends ImPacket {

    private static final long serialVersionUID = -4283971967100935982L;

    private byte version = 0;
    private byte mask = 0;

    public TcpPacket() {
    }

    public TcpPacket(Command command, byte[] body) {
        super(command, body);
    }

    public TcpPacket(byte[] body) {
        super(body);
    }

    public byte getVersion() {
        return version;
    }

    public void setVersion(byte version) {
        this.version = version;
    }

    public byte getMask() {
        return mask;
    }

    public void setMask(byte mask) {
        this.mask = mask;
    }

}
